package com.example.vspm.mapper;

import com.example.vspm.entity.Person;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface LoginMapper {
    @Select(value = "select tid from vspm_person where telephone=#{telephone} and password=#{password}")
    Integer loginPerson(Person person);
    @Select(value = "select * from vspm_person where tid=#{tid}")
    Person findPerson(int tid);
}
